package cn.stylefeng.guns.modular.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 年级信息
 * </p>
 *
 * @author 
 * @since 2019-11-04
 */
@TableName("xx_grade_info")
public class GradeInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学校编码（学校信息表主键）
     */
    @TableField("SCHOOL_ID")
    private Integer schoolId;

    /**
     * 年级编码
     */
    @TableField("CODE")
    private String code;

    /**
     * 年级名称
     */
    @TableField("NAME")
    private String name;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Integer schoolId) {
        this.schoolId = schoolId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "GradeInfo{" +
        "id=" + id +
        ", schoolId=" + schoolId +
        ", code=" + code +
        ", name=" + name +
        "}";
    }
}
